#define DBC_CHECK_PRECONDITION

using System;
using System.Xml;

using DesignByContract;

namespace Outcoding.GraphGenerator.Entities.XmlBuilders {
    public class SeriesCollectionXmlBuilder : IXmlBuilder {
        
        private SeriesCollection mResultObject = null;

        public SeriesCollection ResultObject {
            get {
                return mResultObject;
            }
        }

        public SeriesCollectionXmlBuilder(XmlNode seriesCollectionXmlNode) {
            Check.Require(seriesCollectionXmlNode != null, "Xml source node cannot be null");
            Check.Require(seriesCollectionXmlNode.Name.CompareTo("seriescollection") == 0, "A SeriesCollection Xml node must be supplied.");
            this.BuildObject(seriesCollectionXmlNode);
        }

        private void BuildObject(XmlNode seriesCollectionXmlNode) {
            mResultObject = new SeriesCollection();
        }
    }
}
